package api

import (
	"gateway/basic/config"
	__ "gateway/basic/proto"
	"github.com/gin-gonic/gin"
	"net/http"
)

func Register(c *gin.Context) {
	//调用服务端
	req, err := config.UserClient.RegisterReq(c, &__.RegisterReqReq{
		Mobile:   "",
		Password: "",
	})
	if err != nil {
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"code": 200,
		"msg":  "成功",
		"data": req,
	})
}
